package LawsonTransformJava.data;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TblHRDepBen extends TblDate {
	public int		company		=0;  
	public int 		employee	=0;   
	public int 		dependent	=0;   
	public String 	plan_type	=null; 
	public String 	plan_code	=null; 
	public Date 	emp_start	=null;
	public Date 	start_date	=null;
	public Date 	stop_date	=null;
	public Date 	creation_date	=null;
	public Date 	upd_date	=null;
	public String 	user_id		=null; 
	public int		time_stamp	=0;   
	public String 	cover_type	=null;

	//	private DateFormat df = new SimpleDateFormat("yyyyMMdd");
	//	private String text;

	public void setCompany(int company) {
		this.company = company;
	}
	public void setEmployee(int employee) {
		this.employee = employee;
	}
	public void setDependent(int dependent) {
		this.dependent = dependent;
	}
	public void setPlan_type(String plan_type) {
		this.plan_type = plan_type;
	}
	public void setPlan_code(String plan_code) {
		this.plan_code = plan_code;
	}
	public void setEmp_start(Date emp_start) {
		this.emp_start = emp_start;
	}
	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}
	public void setStop_date(Date stop_date) {
		this.stop_date = stop_date;
	}
	public void setCreation_date(Date creation_date) {
		this.creation_date = creation_date;
	}
	public void setUpd_date(Date upd_date) {
		this.upd_date = upd_date;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public void setTime_stamp(int time_stamp) {
		this.time_stamp = time_stamp;
	}
	public void setCover_type(String cover_type) {
		this.cover_type = cover_type;
	}

	// Getters	

	public int getCompany() {
		return company;
	}
	public int getEmployee() {
		return employee;
	}
	public int getDependent() {
		return dependent;
	}
	public String getPlan_type() {
		if (plan_type==null||plan_type.equals(""))
			return "";
		else
			return "\"" + plan_type + "\"";			
	}
	public String getPlan_code() {
		if (plan_code==null||plan_code.equals(""))
			return "";
		else
			return "\"" + plan_code + "\"";			
	}
	public String getEmp_start() {
		String date =(emp_start!=null?df.format(emp_start).toString():""); 
		return date;
	}
	public String getStart_date() {
		String date =(start_date!=null?df.format(start_date).toString():""); 
		return date;
	}
	public String getStop_date() {
		String date =(stop_date!=null?df.format(stop_date).toString():""); 
		return date;
	}
	public String getCreation_date() {
		return convertDate(creation_date);
	}
	public String getUpd_date() {
		return convertDate(upd_date);
	}
	public String getUser_id() {
		if (user_id==null||user_id.equals(""))
			return "";
		else
			return "\"" + user_id + "\"";			
	}
	public int getTime_stamp() {
		return time_stamp;
	}
	public String getCover_type() {
		if (cover_type==null||cover_type.equals(""))
			return "";
		else
			return "\"" + cover_type + "\"";			
	} 


}
